package com.example.demo.utils;

import com.alibaba.rocketmq.client.consumer.DefaultMQPushConsumer;
import com.alibaba.rocketmq.client.consumer.listener.*;
import com.alibaba.rocketmq.client.exception.MQClientException;
import com.alibaba.rocketmq.common.consumer.ConsumeFromWhere;
import com.alibaba.rocketmq.common.message.MessageExt;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

public class UUIDUtil {
    public static Cookie UUIDCookie()
    {
        String uuid = UUID.randomUUID().toString().replaceAll("-", "");
        Cookie cookie = new Cookie("UUID",uuid);
        return cookie;
    }


}
